#电子时钟，过一秒打印一次
import time

# while True:
#     print(time.ctime())
#     time.sleep(5)

# 闹钟，设定一个程序点，到达时间停止打印
lock = "16:06:00"
while True:
    print(time.strftime("%H:%M:%S"))

    if time.strftime("%H:%M:%S") == lock:
        break

    time.sleep(1)

